.m-outer {
  width: 400px;
  height: 400px;
  border: 1px solid red;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.m-inner {
  display: inline-block;
  transform: translate(0, 0) scale(1);
}

.node {
  position: relative;
  display: flex;
  align-items: center;
}
.node::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  box-sizing: border-box;
  border-left: 1px solid #ccc;
}
.node:nth-of-type(1)::before {
  height: 50%;
  top: 50%;
}
.node:nth-last-of-type(1)::before {
  height: 50%;
}
.node:only-of-type::before {
  content: normal;
}

.node-item {
  position: relative;
  width: 200px;
  box-sizing: border-box;
  padding: 8px 20px;
}
.node-item::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  box-sizing: border-box;
  border-bottom: 1px solid #ccc;
}
.node-item.is-root::before {
  width: calc(100% - 20px);
  left: 20px;
}
.node-item.is-leaf::before {
  width: 20px;
}
.node-item.is-expand + .node-children {
  display: block;
}
.node-item.is-collapse + .node-children {
  display: none;
}
.node-item.is-collapse::before {
  width: 20px;
}

.node-item-label {
  display: inline-block;
  background-color: #fff;
  box-sizing: border-box;
  padding: 0 8px;
  white-space: normal;
  word-break: break-all;
  overflow-wrap: break-word;
  font-size: 14px;
  color: #333;
  font-weight: normal;
  cursor: pointer;
}
.node-item-label:hover {
  color: red;
}
.node-item-label.is-active {
  color: red;
  font-weight: bold;
}/*# sourceMappingURL=mind.css.map */